package LeetCode;

public class _237_删除链表中的节点 {
	public void deleteNode(ListNode node) {
		if (node == null || node.next == null) {
			node = null;
			return;
		}
		ListNode next = node.next;
		node.val = next.val;
		node.next = next.next;
	}
}
